﻿Imports Pronama.Sekatyaku
Imports Pronama.Sekatyaku.ViewModel
Imports System.Globalization
Imports System.Windows.Markup

Class Application

    ' Startup、Exit、DispatcherUnhandledException などのアプリケーション レベルのイベントは、
    ' このファイルで処理できます。

    Private WithEvents ViewModel As MainWindowViewModel
    Private WithEvents Window As MainWindow

    Protected Overrides Sub OnStartup(ByVal e As StartupEventArgs)
        System.Net.ServicePointManager.DefaultConnectionLimit = 2

        ViewModel = New MainWindowViewModel
        Window = New MainWindow
        Window.DataContext = ViewModel

        Window.Show()

        FrameworkElement.LanguageProperty.OverrideMetadata(GetType(FrameworkElement), New FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)))

        MyBase.OnStartup(e)

    End Sub

End Class
